<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="utf-8" />
  <meta name="description" content="记录学习生活的点点滴滴" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
     Mysterious Blog
  </title>
  <meta name="generator" content="hexo-theme-ayer">
  <link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/dist/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css">
<link rel="stylesheet" href="/css/custom.css">
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
<link rel="alternate" href="/atom.xml" title="Mysterious Blog" type="application/atom+xml">
</head>
</html>
<body>
  <div id="app">
    <main class="content on">
<section class="cover">
  <div class="cover-frame">
    <div class="bg-box">
      <img src="/images/cover1.jpg" alt="image frame" />
    </div>
    <div class="cover-inner text-center text-white">
      <h1><a href="/">Mysterious Blog</a></h1>
      <div id="subtitle-box">
        <span id="subtitle"></span>
      </div>
      <div>
      </div>
    </div>
  </div>
  <div class="cover-learn-more">
    <a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
  </div>
</section>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>
<!-- Subtitle -->
  <script>
    try {
      var typed = new Typed("#subtitle", {
        strings: ['面朝大海，春暖花开', '愿你一生努力，一生被爱', '想要的都拥有，得不到的都释怀'],
        startDelay: 0,
        typeSpeed: 200,
        loop: true,
        backSpeed: 100,
        showCursor: true
      });
    } catch (err) {
      console.log(err)
    }
  </script>
<div id="main">
  <section class="outer">
  <article class="articles">
    <article
  id="post-考研复试必问九个问题"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/03/09/%E8%80%83%E7%A0%94%E5%A4%8D%E8%AF%95%E5%BF%85%E9%97%AE%E4%B9%9D%E4%B8%AA%E9%97%AE%E9%A2%98/"
    >考研复试必问九个问题</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/03/09/%E8%80%83%E7%A0%94%E5%A4%8D%E8%AF%95%E5%BF%85%E9%97%AE%E4%B9%9D%E4%B8%AA%E9%97%AE%E9%A2%98/" class="article-date">
  <time datetime="2021-03-09T12:39:43.000Z" itemprop="datePublished">2021-03-09</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%AD%A6%E4%B9%A0/">学习</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <p>考研复试必问九个问题(刘晓燕)：</p>
<p><strong>1. 为什么考研，为什么选择这个专业？</strong></p>
<p>真心想考研，在大学期间，我发现我读的书很少，除了专业课的书以外，我发现我几乎没有收获什么东西，当我觉得我需要学习的时候，已经来到了大二的下半学期，所以我决定我一定要考研，更好的提升我自己，把大学没读的书，把大学错过的一些很多的提升自己的机会全都给补上</p> 
      <a class="article-more-link" href="/2021/03/09/%E8%80%83%E7%A0%94%E5%A4%8D%E8%AF%95%E5%BF%85%E9%97%AE%E4%B9%9D%E4%B8%AA%E9%97%AE%E9%A2%98/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%80%83%E7%A0%94%E5%A4%8D%E8%AF%95/" rel="tag">考研复试</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-蓝奏云链接打不开的解决办法"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/03/09/%E8%93%9D%E5%A5%8F%E4%BA%91%E9%93%BE%E6%8E%A5%E6%89%93%E4%B8%8D%E5%BC%80%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/"
    >蓝奏云链接打不开的解决办法</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/03/09/%E8%93%9D%E5%A5%8F%E4%BA%91%E9%93%BE%E6%8E%A5%E6%89%93%E4%B8%8D%E5%BC%80%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/" class="article-date">
  <time datetime="2021-03-09T10:24:38.866Z" itemprop="datePublished">2021-03-09</time>
</a>    
    </div>
    <div class="article-entry" itemprop="articleBody">
  <p>蓝奏云链接打不开的解决办法：</p>
<ol>
<li><p>将www改成pan或删掉www</p>
</li>
<li><p>将lanzous或lanzoux中的s或x改成i或删掉</p>
</li>
<li><p>修改DNS为114.114.114.114 或 114.114.115.115或223.5.5.5或8.8.8.8或4.4.4.4</p>
</li>
<li><p>修改hosts文件：记事本打开C:\Windows\System32\drivers\etc\hosts（此为windows，其他系统也有，路径自查）添加（IP、域名之间是Tab）：</p>
</li>
<li><p>hosts不能编辑修改用户权限即可</p>
<p>118.31.212.253     <a href="http://www.lanzous.com/" target="_blank" rel="noopener">www.lanzous.com</a><br>118.31.212.253     lanzous.com<br>118.31.212.253     *.lanzous.com</p>
</li>
</ol>
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
    </footer>
  </div>
</article>
    <article
  id="post-Python安装详解 安装目录说明及修改pip默认包安装位置"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/26/Python%E5%AE%89%E8%A3%85%E8%AF%A6%E8%A7%A3%20%E5%AE%89%E8%A3%85%E7%9B%AE%E5%BD%95%E8%AF%B4%E6%98%8E%E5%8F%8A%E4%BF%AE%E6%94%B9pip%E9%BB%98%E8%AE%A4%E5%8C%85%E5%AE%89%E8%A3%85%E4%BD%8D%E7%BD%AE/"
    >Python安装详解</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/26/Python%E5%AE%89%E8%A3%85%E8%AF%A6%E8%A7%A3%20%E5%AE%89%E8%A3%85%E7%9B%AE%E5%BD%95%E8%AF%B4%E6%98%8E%E5%8F%8A%E4%BF%AE%E6%94%B9pip%E9%BB%98%E8%AE%A4%E5%8C%85%E5%AE%89%E8%A3%85%E4%BD%8D%E7%BD%AE/" class="article-date">
  <time datetime="2021-02-26T12:39:43.000Z" itemprop="datePublished">2021-02-26</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%AD%A6%E4%B9%A0/">学习</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <h1 id="下载"><a href="#下载" class="headerlink" title="下载"></a>下载</h1><p>  首先需要说明的是，Python 是开源跨平台的，不同系统下的安装区别较大。Python最新源码、安装包，新闻资讯等可以在Python的官网 <a href="https://www.python.org/" target="_blank" rel="noopener">https://www.python.org/</a> 查看到。你还可以在以上链接中下载 Python 的文档， HTML、PDF 和 PostScript 等格式的文档等等各种资料。</p> 
      <a class="article-more-link" href="/2021/02/26/Python%E5%AE%89%E8%A3%85%E8%AF%A6%E8%A7%A3%20%E5%AE%89%E8%A3%85%E7%9B%AE%E5%BD%95%E8%AF%B4%E6%98%8E%E5%8F%8A%E4%BF%AE%E6%94%B9pip%E9%BB%98%E8%AE%A4%E5%8C%85%E5%AE%89%E8%A3%85%E4%BD%8D%E7%BD%AE/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/python/" rel="tag">python</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-虚拟机Win7无法成功安装VMware Tools"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/22/%E8%99%9A%E6%8B%9F%E6%9C%BAWin7%E6%97%A0%E6%B3%95%E6%88%90%E5%8A%9F%E5%AE%89%E8%A3%85VMware%20Tools/"
    >安装VMware Tools</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/22/%E8%99%9A%E6%8B%9F%E6%9C%BAWin7%E6%97%A0%E6%B3%95%E6%88%90%E5%8A%9F%E5%AE%89%E8%A3%85VMware%20Tools/" class="article-date">
  <time datetime="2021-02-22T07:06:55.000Z" itemprop="datePublished">2021-02-22</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <h2 id="Windows7无法成功安装VMware-Tools-且需要更新操作系统到SP1"><a href="#Windows7无法成功安装VMware-Tools-且需要更新操作系统到SP1" class="headerlink" title="Windows7无法成功安装VMware Tools,且需要更新操作系统到SP1."></a>Windows7无法成功安装VMware Tools,且需要更新操作系统到SP1.</h2> 
      <a class="article-more-link" href="/2021/02/22/%E8%99%9A%E6%8B%9F%E6%9C%BAWin7%E6%97%A0%E6%B3%95%E6%88%90%E5%8A%9F%E5%AE%89%E8%A3%85VMware%20Tools/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%99%9A%E6%8B%9F%E6%9C%BA/" rel="tag">虚拟机</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-IDEA(2018版)常用快捷键大全"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/19/IDEA(2018%E7%89%88)%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8/"
    >idea快捷键</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/19/IDEA(2018%E7%89%88)%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8/" class="article-date">
  <time datetime="2021-02-19T12:39:43.000Z" itemprop="datePublished">2021-02-19</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <p><strong>Ctrl</strong></p> 
      <a class="article-more-link" href="/2021/02/19/IDEA(2018%E7%89%88)%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/idea/" rel="tag">idea</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-Win10同时安装jdk1.7和jdk1.8"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/16/Win10%E5%90%8C%E6%97%B6%E5%AE%89%E8%A3%85jdk1.7%E5%92%8Cjdk1.8/"
    >安装jdk7.x和8.x</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/16/Win10%E5%90%8C%E6%97%B6%E5%AE%89%E8%A3%85jdk1.7%E5%92%8Cjdk1.8/" class="article-date">
  <time datetime="2021-02-16T12:39:43.000Z" itemprop="datePublished">2021-02-16</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <p>安装：</p>
<p>安装过程是傻瓜式安装，安装的路径根据自己的习惯进行选择。</p> 
      <a class="article-more-link" href="/2021/02/16/Win10%E5%90%8C%E6%97%B6%E5%AE%89%E8%A3%85jdk1.7%E5%92%8Cjdk1.8/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/win10/" rel="tag">win10</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-win10下配置tomcat8.x和7.x"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/15/win10%E4%B8%8B%E9%85%8D%E7%BD%AEtomcat8.x%E5%92%8C7.x/"
    >win10配置tomcat8.x和7.x</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/15/win10%E4%B8%8B%E9%85%8D%E7%BD%AEtomcat8.x%E5%92%8C7.x/" class="article-date">
  <time datetime="2021-02-15T13:30:37.000Z" itemprop="datePublished">2021-02-15</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <h3 id="配置tomcat8-x和7-x"><a href="#配置tomcat8-x和7-x" class="headerlink" title="配置tomcat8.x和7.x"></a>配置tomcat8.x和7.x</h3><h4 id="配置tomcat7-x"><a href="#配置tomcat7-x" class="headerlink" title="配置tomcat7.x"></a>配置tomcat7.x</h4><ol>
<li><p>下载并解压apache-tomcat-7.x和apache-tomcat-8.x到文件目录D:\Program Files\Tomcat</p>
</li>
<li><p>配置环境变量</p></li></ol> 
      <a class="article-more-link" href="/2021/02/15/win10%E4%B8%8B%E9%85%8D%E7%BD%AEtomcat8.x%E5%92%8C7.x/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/win10/" rel="tag">win10</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-vscode过滤exe等文件或文件夹的简便方法"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/15/vscode%E8%BF%87%E6%BB%A4exe%E7%AD%89%E6%96%87%E4%BB%B6%E6%88%96%E6%96%87%E4%BB%B6%E5%A4%B9%E7%9A%84%E7%AE%80%E4%BE%BF%E6%96%B9%E6%B3%95/"
    >VSCode过滤文件配置</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/15/vscode%E8%BF%87%E6%BB%A4exe%E7%AD%89%E6%96%87%E4%BB%B6%E6%88%96%E6%96%87%E4%BB%B6%E5%A4%B9%E7%9A%84%E7%AE%80%E4%BE%BF%E6%96%B9%E6%B3%95/" class="article-date">
  <time datetime="2021-02-15T12:39:43.000Z" itemprop="datePublished">2021-02-15</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <p>打开vscode，添加文件后，文件列表会出现大量与代码无关的文件，看着很不爽，这时只需要在设置一下即可</p>
<p>打开设置文件夹settings.json</p> 
      <a class="article-more-link" href="/2021/02/15/vscode%E8%BF%87%E6%BB%A4exe%E7%AD%89%E6%96%87%E4%BB%B6%E6%88%96%E6%96%87%E4%BB%B6%E5%A4%B9%E7%9A%84%E7%AE%80%E4%BE%BF%E6%96%B9%E6%B3%95/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/vscode/" rel="tag">vscode</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-Python学习准备：Anaconda和Pycharm的安装及环境创建"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/14/Python%E5%AD%A6%E4%B9%A0%E5%87%86%E5%A4%87%EF%BC%9AAnaconda%E5%92%8CPycharm%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E7%8E%AF%E5%A2%83%E5%88%9B%E5%BB%BA/"
    >Python学习准备：Anaconda和Pycharm的安装及环境创建</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/14/Python%E5%AD%A6%E4%B9%A0%E5%87%86%E5%A4%87%EF%BC%9AAnaconda%E5%92%8CPycharm%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E7%8E%AF%E5%A2%83%E5%88%9B%E5%BB%BA/" class="article-date">
  <time datetime="2021-02-14T12:39:43.000Z" itemprop="datePublished">2021-02-14</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%AD%A6%E4%B9%A0/">学习</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <h1 id="Python学习准备：Anaconda和Pycharm的安装及环境创建"><a href="#Python学习准备：Anaconda和Pycharm的安装及环境创建" class="headerlink" title="Python学习准备：Anaconda和Pycharm的安装及环境创建"></a>Python学习准备：Anaconda和Pycharm的安装及环境创建</h1><h2 id="一、Anaconda"><a href="#一、Anaconda" class="headerlink" title="一、Anaconda"></a>一、Anaconda</h2><h4 id="1-Anaconda是什么？"><a href="#1-Anaconda是什么？" class="headerlink" title="1. Anaconda是什么？"></a>1. <strong>Anaconda是什么？</strong></h4><p>   <a href="https://www.continuum.io/why-anaconda" target="_blank" rel="noopener">Anaconda</a>是一个用于科学计算的Python发行版，支持 Linux, Mac, Windows系统，提供了包管理与环境管理的功能，可以很方便地解决多版本python并存、切换以及各种第三方包安装问题。Anaconda利用工具/命令<code>conda</code>来进行package和environment的管理，并且已经包含了Python和相关的配套工具。 </p>
<p><strong>conda</strong> 是开源包（packages）和虚拟环境（environment）的管理系统。</p> 
      <a class="article-more-link" href="/2021/02/14/Python%E5%AD%A6%E4%B9%A0%E5%87%86%E5%A4%87%EF%BC%9AAnaconda%E5%92%8CPycharm%E7%9A%84%E5%AE%89%E8%A3%85%E5%8F%8A%E7%8E%AF%E5%A2%83%E5%88%9B%E5%BB%BA/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/python/" rel="tag">python</a></li></ul>
    </footer>
  </div>
</article>
    <article
  id="post-springMVC常用注解"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    <header class="article-header">
<h2 itemprop="name">
  <a class="article-title" href="/2021/02/14/springMVC%E5%B8%B8%E7%94%A8%E6%B3%A8%E8%A7%A3/"
    >springMVC常用注解标签</a> 
</h2>
    </header>
    <div class="article-meta">
      <a href="/2021/02/14/springMVC%E5%B8%B8%E7%94%A8%E6%B3%A8%E8%A7%A3/" class="article-date">
  <time datetime="2021-02-14T12:39:43.000Z" itemprop="datePublished">2021-02-14</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%AD%A6%E4%B9%A0/">学习</a>
  </div>
    </div>
    <div class="article-entry" itemprop="articleBody">
  <h1 id="springmvc常用注解标签详解-https-www-cnblogs-com-leskang-p-5445698-html"><a href="#springmvc常用注解标签详解-https-www-cnblogs-com-leskang-p-5445698-html" class="headerlink" title="springmvc常用注解标签详解](https://www.cnblogs.com/leskang/p/5445698.html)"></a>springmvc常用注解标签详解](<a href="https://www.cnblogs.com/leskang/p/5445698.html" target="_blank" rel="noopener">https://www.cnblogs.com/leskang/p/5445698.html</a>)</h1><h2 id="1-Controller"><a href="#1-Controller" class="headerlink" title="1.@Controller"></a>1.@Controller</h2><p>在SpringMVC 中，控制器Controller 负责处理由DispatcherServlet 分发的请求，它把用户请求的数据经过业务处理层处理之后封装成一个Model ，然后再把该Model 返回给对应的View 进行展示。在SpringMVC 中提供了一个非常简便的定义Controller 的方法，你无需继承特定的类或实现特定的接口，只需使用@Controller 标记一个类是Controller ，然后使用@RequestMapping 和@RequestParam 等一些注解用以定义URL 请求和Controller 方法之间的映射，这样的Controller 就能被外界访问到。此外Controller 不会直接依赖于HttpServletRequest 和HttpServletResponse 等HttpServlet 对象，它们可以通过Controller 的方法参数灵活的获取到。</p>
<p>@Controller 用于标记在一个类上，使用它标记的类就是一个SpringMVC Controller 对象。分发处理器将会扫描使用了该注解的类的方法，并检测该方法是否使用了@RequestMapping 注解。@Controller 只是定义了一个控制器类，而使用@RequestMapping 注解的方法才是真正处理请求的处理器。单单使用@Controller 标记在一个类上还不能真正意义上的说它就是SpringMVC 的一个控制器类，因为这个时候Spring 还不认识它。那么要如何做Spring 才能认识它呢？这个时候就需要我们把这个控制器类交给Spring 来管理。有两种方式：</p>
<p>　　（1）在SpringMVC 的配置文件中定义MyController 的bean 对象。</p>
<p>　　（2）在SpringMVC 的配置文件中告诉Spring 该到哪里去找标记为@Controller 的Controller 控制器。</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">&lt;!--方式一--&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">bean</span> <span class="attr">class</span>=<span class="string">"com.host.app.web.controller.MyController"</span>/&gt;</span></span><br><span class="line"><span class="comment">&lt;!--方式二--&gt;</span></span><br><span class="line"><span class="tag">&lt; <span class="attr">context:component-scan</span> <span class="attr">base-package</span> = <span class="string">"com.host.app.web"</span> /&gt;</span>//路径写到controller的上一层(扫描包详解见下面浅析)</span><br></pre></td></tr></table></figure> 
      <a class="article-more-link" href="/2021/02/14/springMVC%E5%B8%B8%E7%94%A8%E6%B3%A8%E8%A7%A3/"
        >阅读更多...</a
      >
      <!-- reward -->
    </div>
    <!-- copyright -->
    <footer class="article-footer">
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/spring/" rel="tag">spring</a></li></ul>
    </footer>
  </div>
</article>
  </article>
  <nav class="page-nav">
    <a class="extend prev" rel="prev" href="/">上一页</a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/3/">下一页</a>
  </nav>
</section>
</div>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2020-2021
        <i class="ri-heart-fill heart_icon"></i> Mystery
      </li>
    </ul>
    <ul>
      <li>
        Powered by <a href="https://hexo.io" target="_blank">Hexo</a>
        <span class="division">|</span>
        Theme - <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
      </li>
    </ul>
    <ul>
      <li>
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></s>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
      </li>
    </ul>
    <ul>
    </ul>
    <ul>
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
      </li>
    </ul>
  </div>
</footer>
      <div class="float_btns">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>
<div class="todark" id="todark">
  <i class="ri-moon-line"></i>
</div>
      </div>
    </main>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="Mysterious Blog"></a>
  </div>
  <ul class="nav nav-main">
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/friends">友链</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/player">影音</a>
    </li>
    <li class="nav-item">
      <a class="nav-item-link" href="/about">关于我</a>
    </li>
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <script>
      if (window.matchMedia("(max-width: 768px)").matches) {
        document.querySelector('.content').classList.remove('on');
        document.querySelector('.sidebar').classList.remove('on');
      }
    </script>
    <div id="mask"></div>
<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    <div class="reward-item">
      <img class="reward-img" src="https://gitee.com/LYmystery/PicGo/raw/master/img/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    <div class="reward-item">
      <img class="reward-img" src="https://gitee.com/LYmystery/PicGo/raw/master/img/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
  </div>
</div>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/lazyload.min.js"></script>
<!-- Tocbot -->
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
<script src="/dist/main.js"></script>
<!-- ImageViewer -->
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
        </div>
    </div>
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>
<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))
        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>
<!-- MathJax -->
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
      tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
  });
  MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
      for(i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
      }
  });
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.6/unpacked/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
  var ayerConfig = {
    mathjax: true
  }
</script>
<!-- Katex -->
<!-- busuanzi  -->
<script src="/js/busuanzi-2.3.pure.min.js"></script>
<!-- ClickLove -->
<!-- ClickBoom1 -->
<!-- ClickBoom2 -->
<!-- CodeCopy -->
<link rel="stylesheet" href="/css/clipboard.css">
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script>
  function wait(callback, seconds) {
    var timelag = null;
    timelag = window.setTimeout(callback, seconds);
  }
  !function (e, t, a) {
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '<i class="ri-file-copy-2-line"></i><span>COPY</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      $(".article pre code").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });
      clipboard.on('success', function(e) {
        let $btn = $(e.trigger);
        $btn.addClass('copied');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-checkbox-circle-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPIED';
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-checkbox-circle-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
      clipboard.on('error', function(e) {
        e.clearSelection();
        let $btn = $(e.trigger);
        $btn.addClass('copy-failed');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-time-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPY FAILED';
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-time-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
    }
    initCopyCode();
  }(window, document);
</script>
<!-- CanvasBackground -->
    <div id="music">
    <iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="52"
        src="//music.163.com/outchain/player?type=2&id=22707008&auto=0&height=32"></iframe>
</div>
<style>
    #music {
        position: fixed;
        right: 15px;
        bottom: 0;
        z-index: 998;
    }
</style>
  </div>
</body>
</html>